<template>
  <div class="datav_top">
    <div class="datav_top_img">
      <img src="./../../assets/img/index/datav-top.png" alt />
    </div>
    <div class="datav_top_content">
      <p>公司</p>
      <p>数据中心</p>
      <div class="datav_top_content_day">
        <p>2020-02-18 星期一 16：55：00</p>
        <p>晴天32~35</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "datav_top",
  data () {
    return {};
  },
  components: {},
  methods: {}
};
</script>
<style lang="less" scoped>
.datav_top {
  width: 100%;
  position: relative;
  .datav_top_img {
    width: 100%;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .datav_top_content {
    width: 100%;
    padding: 0 1.5%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    > p:nth-of-type(1) {
      width: 26%;
      text-align: left;
      color: #ffffff;
      font-weight: bold;
      @media only screen and (min-width: 1680px) and (max-width: 1920px) {
        font-size: 20px;
      }
      @media only screen and (min-width: 1440px) and (max-width: 1680px) {
        font-size: 16px;
      }
      @media only screen and (min-width: 1024px) and (max-width: 1440px) {
        font-size: 14px;
      }
      @media only screen and (max-width: 1024px) {
        font-size: 12px;
      }
    }
    > p:nth-of-type(2) {
      width: 48%;
      text-align: left;
      color: #52ffff;
      // font-weight: bold;
      text-align: center;
      @media only screen and (min-width: 1680px) and (max-width: 1920px) {
        font-size: 28px;
      }
      @media only screen and (min-width: 1440px) and (max-width: 1680px) {
        font-size: 24px;
      }
      @media only screen and (min-width: 1024px) and (max-width: 1440px) {
        font-size: 20px;
      }
      @media only screen and (max-width: 1024px) {
        font-size: 16px;
      }
    }
    > .datav_top_content_day {
      width: 26%;
      color: #ffffff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      @media only screen and (min-width: 1680px) and (max-width: 1920px) {
        font-size: 16px;
      }
      @media only screen and (min-width: 1440px) and (max-width: 1680px) {
        font-size: 14px;
      }
      @media only screen and (min-width: 1024px) and (max-width: 1440px) {
        font-size: 10px;
      }
      @media only screen and (max-width: 1024px) {
        font-size: 6px;
      }
    }
  }
}
</style>
